]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Removed unused get*Color() methods
authorEvan Welsh <contact@evanwelsh.com>
Sat, 30 Oct 2021 22:00:02 +0000 (15:00 -0700)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 30 Jan 2024 14:55:29 +0000 (15:55 +0100)
They use API from Clutter.Rectangle which hasn't been used in the
magnifier since commit c815979f, and has since been removed from
Clutter altogether.

Since the methods are unused, remove them instead of fixing them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2037>

js/ui/magnifier.js

index 522b201fee698fabb720050987b55a5dbc0e8b5c..a9e174df0fd94a6ea700442c0254d4c1455ef1d0 100644 (file)
@@ -407,21 +407,6 @@ export class Magnifier extends Signals.EventEmitter {
         }
     }
 
-    /**
-     * getCrosshairsColor:
-     * Get the color of the crosshairs.
-     *
-     * @returns {string} The color as a string, e.g. '#0000ffff' or 'blue'.
-     */
-    getCrosshairsColor() {
-        if (this._crossHairs) {
-            let clutterColor = this._crossHairs.getColor();
-            return clutterColor.to_string();
-        } else {
-            return '#00000000';
-        }
-    }
-
     /**
      * setCrosshairsThickness:
      *
@@ -1928,16 +1913,6 @@ class Crosshairs extends Clutter.Actor {
         this._vertBottomHair.background_color = clutterColor;
     }
 
-    /**
-     * getColor:
-     * Get the color of the crosshairs.
-     *
-     * @returns {ClutterColor} the crosshairs color
-     */
-    getColor() {
-        return this._horizLeftHair.get_color();
-    }
-
     /**
      * setThickness:
      *